// qter.h
#ifndef QTER_H
#define QTER_H
 
#include <QObject>
#include <qDebug>
 
class Qter : public QObject
{
    Q_OBJECT
 
public slots:
    // 槽函数
    void cppSlot(const QString &msg) {
        qDebug() << "Called the C++ slot with message:" << msg;
    }
};
 
#endif // QTER_H